package com.zqk.principle.dependence;

/**
 * @Package com.zql.principle.dependence
 * @Description:TODO
 * @Author 张乾坤
 * @Create: 2018/10/25
 * @Version 1.0
 * @Update: message
 */
public class Geely {
//2
   /* public void studyImoocCourse(ICourse iCourse){
        iCourse.studyCourse();

    }*/
   //3
   /*private ICourse iCourse;

    public Geely(ICourse iCourse) {
        this.iCourse = iCourse;
    }

    public void studyImoocCourse(){
        iCourse.studyCourse();

    }*/

    private ICourse iCourse;

    public void setiCourse(ICourse iCourse) {
        this.iCourse = iCourse;
    }
    public void studyImoocCourse(){
        iCourse.studyCourse();

    }
}
